package org.zjx.analysis.analyze.tap;

import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collections;

public class BXGTabAnalysis extends BaseTabAnalysis {

    public BXGTabAnalysis(IWindow window) {
        super("宝象国", window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 452, 411);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(131, 66, 668, 507);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(248, 24, 289, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAACoAAAAOCAYAAABZ/o57AAADzElEQVR4XpWUj09TVxTH+48t1FrBDn/Q8p7V1h+1SMkWiZtEjc5lxmlMiI4JqLV9VmgplYFSVJppjA4QLOsGUpYq2FnZhjIE5sROsh+c3XNu3x3vtZ16kk/fPfeee8/3nXNfDSWSH1byno3z0We98P72oPALUWLz0rPM2QLJBzNglJW8GE18Lsd6VxB2H77KuPYGrsI6Fot7DPizxhEAydOu4eXiEoyMT9PYVs2pqAqDUeJiUCQiVYegmCmRhKYIiMmu6MPeaEaZCV2/s3iiYrat9hKYZB9cif0g5nxtw+BvTxBK+zDNxW5PgP3DS6IqWPFK9uJopc6LRPmOYEHKHBfYs5ViN1a1gWHnx53krJJ8BTFKXg1oX/oHwJ3b97b2af1NOk/2hMlft71FF5Fvm2p4rNUdBIO6sf5MH9z4ZlLHhIaT3j6Kde3poLY3BQbJx7H6In//swytnd8JH8WhKazSK4Wa7X6qGgpG0pk5eJieFX6pww8WZ4BiSegqmR3GiERHIfPTgkC1x2ysEro8wpPbzhAnGm9RzPP5V4wsoZrqq3PYBcwj1/CrZt7sI18l9ehXGH/wTPiYx7KV32drVQsY9K1VwY1JtlFUJicOKbE2E2b5LPhC96Dr+hj0DaWFyPjIFHT1JgUD32ag9nCUzpE8XOhquw8S938We/SGnVnr5EIr3Eyomrx00zmwugKCx1PzMPHjrGbOVMlFYrzR1syuy23ojiWpomjZP/6EqV94NywOH8UFOxPkK+E4+XI1v5tm+Rw4PwjBJyd6iRe/v4b537Lgb7sHQ4kMeOo6wLLlPMVibiF0ZnaRJv/P4t8/EdV01bbR3PIywDCrYEfPKDvjpW4Ht0alX3RjpdCVXUpNYuufQt2RHlq/M5jWCbU2QiFSkzMwnnpKYyU8BBcj8dxaA1Fmb4TzwbvsI5gVgrpjY9B1bVT4aNV7I5pz5V38Ayl3eGHfkSjsP8pZYNV8PrdI47OBfoiyTlW6c3fU5S8klAtJTT5jQqdp/PmpGG3YffArse6pC8Or7BIMxNO0HunmLUZ7vfQXZKbmWIWmyY9cSYDJhvv+E3q84YaIL2ZYHLScUJ7YLJ3W8PDRDCVS/WjsPrtLPWDceJLYsLUZrt9Mag5WwoNg2dxE456vx+hcb0u/WD90PAqSm/9dybv8eTn1bKm5QLEVO7xc6LsaCq09GIGFF1mI3RqHqj2t7IPS3nF8EfWlyh1NcOfuBBw61k2VfVdDjQb1sNW2L94Kit9QnweuefaG4MDRy7BGahAii2Gynso7Ww/GqPH/AjhHwVkoMOupAAAAAElFTkSuQmCC");
        return ImageUtil.makeColorsTransparent(bufferedImage, Collections.singletonList(Color.WHITE));
    }
}
